export default class book {
    constructor({book_id,book_type,book_typeName,book_price,order_num}){
        this.book_id=book_id;
        this.book_type=book_type;
        this.book_typeName=book_typeName;
        this.book_price=book_price;
        this.order_num=order_num;
    }

}


export function createBook(bookData) {
    return new book({
        book_id:bookData.book_id,
        book_type:bookData.book_type,
        book_typeName:bookData.book_typeName,
        book_price:bookData.book_price,
        order_num:book.order_num
    })
}